package cst.a216yzh.widgesttest216yzh;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class ButtonActivity extends AppCompatActivity {
    private TextView infoview;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_button);
        infoview=(TextView)findViewById(R.id.infoview);
        Intent intent=getIntent();
        String str=intent.getStringExtra("para1");
        infoview.setText(str);
    }
}
